home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-26 | 1.2 KB | 40 lines | [TEXT/ScoM] |
- ; crossfading example
-
- ; You don't need a synthesizer like Wavestation to get crossfading sounds.
- ; You can crossfade between any sounds using volume controller and a controller
- ; wave that has 180 degrees phase difference. Make both instruments play
- ; the same symbols and that's it, instant crossfades with any synth.
-
- ; Here you define the voice1 to consist of 2 components. After that
- ; you will define the classes for the voice1 *that are the same* for
- ; both components. Next you define for each component separately the
- ; unique values, which are the sound name and volume controller wave phase.
-
- (def-orchestra 'orchestra
- all-instruments (voice1)
- voice1 (component-1 component-2)
- )
-
- (def-section sect-a
- voice1
- zone '(2/1)
- tonality (activate-tonality (major c 4))
- length '(1/16)
- symbol '(a b c)
- velocity '(64)
- component-1
- channel 1
- program (mu80-sounds violin)
- controller (mu80-controllers
- volume (list (vector-round 0 127 (gen-sin 1 0.3 32 90))))
- component-2
- channel 2
- program (mu80-sounds grandpno)
- controller (mu80-controllers
- volume (list (vector-round 0 127 (gen-sin 1 0.3 32 -90))))
- )
-
- (play-file-p "crossfading"
- all-instruments '(sect-a)
- )
-